#ifndef DSPSIMULATOR_NUM_H
#define DSPSIMULATOR_NUM_H

#include <simulatorV1/type/type.h>
#include <simulatorV1/lexer/token.h>

/**
 * 该类用于标识一个数值类型的token
 */
class Num : public Token {
public:
    u64 m_val;  // 数字的值

    Num(u64 val) :
            Token(Tag::NUM), m_val(val) {}

    ~Num() override = default;

    std::string toString() override;
};

#endif //DSPSIMULATOR_NUM_H
